<!DOCTYPE html>
<html lang="zh-CN" ng-app='he'>
	<head>
		<meta charset='utf-8' />
	
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<script src="http://cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
		<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.6/angular.min.js"></script>
		<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.6/angular-sanitize.min.js"></script>
		<script src="http://cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
		<link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css">
		<link rel="stylesheet" ng-href="{{static}}/css/resetStyle.css"/>
		<title>标题</title>
		
		<script type="text/javascript">
			function is_local(){
				if(location.href.startsWith('file')||location.href.startsWith('http://localhost')){
					return true
				}else{
					return false
				}
			};
			var app = angular.module('he',['ngSanitize']);
			app.run(function ($rootScope) {
				// 设置head部分的static变量
				if(is_local()){
					$rootScope.static='..';
				}else{
					$rootScope.static='/static';
				}
			});
			app.controller('content',function ($scope,$http) {
				// 设置body部分的变量
				if(is_local()){
					
				}else{
					
				}
				$scope.test_click=function () {
					info('hello');
				}
			})
		</script>
	</head>
	<body ng-controller='content'>
		<!-----------------��������д����------------------------>
		<button name="test" type="button" value="val" ng-click='test_click()'>Button Text</button>
		
		<!-----------------������------------------------>
		<div ng-include src='"info_panel.html"'></div>
		
	</body>
</html>